﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_DevWork_List.aspx.cs" Inherits="Admin_DevWork_List" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="./css/gridview.css"/>
    <meta charset="UTF-8"/>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="./css/font.css"/>
    <link rel="stylesheet" href="./css/xadmin.css"/>
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script type="text/javascript" src="./js/cookie.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
 <style>
        .all{
            width:95%;
            margin-left:2.5%
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <br />
        <div class="all"> 
        <xblock>
      <%--  <button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>--%>
        <button class="layui-btn" onclick="x_admin_show('添加工程师','Admin_DevWork_Add.aspx');return false;"><i class="layui-icon"></i>添加</button>
        <span class="x-right" style="line-height:40px">共有数据：<asp:Label ID="MsgNum" runat="server" Text="Label"></asp:Label> 条</span>
      </xblock>
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
         </div>

       <%-- <div class="layui-container" style="margin:10px">
            <asp:GridView ID="GridView1" runat="server" Class="GridView" AutoGenerateColumns="False" DataKeyNames="uername" DataSourceID="SqlDataSource1">
                <Columns>
                    <asp:BoundField DataField="uername" HeaderText="登录账户名" ReadOnly="True" SortExpression="uername" />
                    <asp:BoundField DataField="password" HeaderText="登录密码" SortExpression="password" />
                    <asp:BoundField DataField="name" HeaderText="姓名" SortExpression="name" />
                    <asp:BoundField DataField="sex" HeaderText="性别" SortExpression="sex" />
                    <asp:BoundField DataField="tel" HeaderText="电话" SortExpression="tel" />
                    <asp:BoundField DataField="email" HeaderText="邮箱" SortExpression="email" />
                    <asp:HyperLinkField DataNavigateUrlFields="uername" DataNavigateUrlFormatString="Admin_DevWork_Details.aspx?id={0}" HeaderText="详细信息" Text="查看" />
                </Columns>
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringProManage %>" DeleteCommand="DELETE FROM [Users] WHERE [uername] = @uername" InsertCommand="INSERT INTO [Users] ([uername], [password], [name], [sex], [tel], [email]) VALUES (@uername, @password, @name, @sex, @tel, @email)" SelectCommand="SELECT [uername], [password], [name], [sex], [tel], [email] FROM [Users] where [usertype]=0" UpdateCommand="UPDATE [Users] SET [password] = @password, [name] = @name, [sex] = @sex, [tel] = @tel, [email] = @email WHERE [uername] = @uername">
                <DeleteParameters>
                    <asp:Parameter Name="uername" Type="String" />
                </DeleteParameters>
                <InsertParameters>
                    <asp:Parameter Name="uername" Type="String" />
                    <asp:Parameter Name="password" Type="String" />
                    <asp:Parameter Name="name" Type="String" />
                    <asp:Parameter Name="sex" Type="String" />
                    <asp:Parameter Name="tel" Type="String" />
                    <asp:Parameter Name="email" Type="String" />
                </InsertParameters>
                <UpdateParameters>
                    <asp:Parameter Name="password" Type="String" />
                    <asp:Parameter Name="name" Type="String" />
                    <asp:Parameter Name="sex" Type="String" />
                    <asp:Parameter Name="tel" Type="String" />
                    <asp:Parameter Name="email" Type="String" />
                    <asp:Parameter Name="uername" Type="String" />
                </UpdateParameters>
            </asp:SqlDataSource>
        </div>--%>
    </form>
</body>
</html>
